package day04;

/**
 *添加交易过程的类，添加属性（交易员，年限，交易额）
 *
 */
public class Transaction{
    private Trader trader;
    private int year;
    private int value;
    public Transaction(Trader trader, int year, int value)  {
        this.trader = trader;
        this.year = year;
        this.value = value;
    }
    public Trader getTrader(){  return this.trader; }
    public int getYear(){  return this.year;}
    public int getValue(){  return this.value; }
    public String toString(){
        return "{" + this.trader + ", " +
                "year: "+this.year+", " +
                "value:" + this.value +"}";
    }
}
